package com.gla.common;

public enum ResponseCode {
    ACCOUNT_NOT_EMPTY(1,"账号不能为空"),
    PASSWORD_NOT_EMPTY(2,"密码不能为空"),
    ACCOUNT_NOT_EXISTS(3,"账号不存在"),
    PASSWORD_ERROR(4,"密码错误"),
    PARAMTER_NOT_EMPTY(5,"参数不能为空"),
    NAME_NOT_EMPTY(6,"用户名不能为空"),
    PHOTO_NOT_EMPTY(7,"头像不能为空"),
    ACCOUNT_EXISTS(8,"账号已存在"),
    REGISTER_FAIL(9,"注册失败"),
    NEED_LOGIN(10,"未登录"),
    USERINFO_UPDATE_FAIL(11,"用户信息修改失败"),
    ADDRESS_ADD_FAIL(11,"地址添加失败"),
    ADDRESS_UPDATE_FAIL(11,"地址修改失败"),
    ;


    private int code;
    private String msg;

    ResponseCode(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
